<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新版楼盘库-新浪乐居</title>
<link rel="stylesheet" href="<?php echo $this->set_css('managecp.css', 'admin');?>" type="text/css" media="all" />
<script type="text/javascript">
function togglemenu(id) {
	var lis = parent.menu.document.getElementsByClassName('left_menu');
	for(var i = 0; i < lis.length; i++) {
		lis[i].style.display='none';
	}
	parent.menu.document.getElementById(id).style.display = ''; 
}

function sethighlight(n) {
	var lis = document.getElementsByTagName('li');
	for(var i = 0; i < lis.length; i++) {
		lis[i].className = '';
	}
	lis[n].className = 'navon';
}

</script>
</head>
<body>
<div class="mainhd">
	<div class="logo">logo</div>
	<div class="uinfo">
		<p>您好, <em><?php echo $_COOKIE['admin_name'];?>(<?php echo $_COOKIE['admin_group'];?>)</em> 
		[<a href="<?php echo $this->set_url('admin', 'login', 'login_out');?>" target="_top">退出</a>]
		</p>
		<!--p id="others"><a href="#" class="othersoff" onclick="showmenu(this);">其他管理平台</a></p-->
		
	</div>	
	<div class="nav">
		<ul id="topmenu">
			<?php
			$i = 0;
			foreach ($sys_menu as $key=>$val):
				if ($val['parentid'] == 0):
				
			?>
			<li><em><a href="javascript:;"  hidefocus="true" onclick="sethighlight(<?php echo $i?>);togglemenu('menu_<?php echo $val['id']?>');">
			<?php echo $val['cname']?>
			</a></em></li>
			<?php 
				$i++;
				endif;
			endforeach;
			?>
		</ul>
		<div class="navbd"></div>
</div>

</body>
</html>